package service_provider;

import service_interface.MyServiceInterface;

/**
 * @author wdl
 */
public class OtherMyServiceInterfaceImpl implements MyServiceInterface {
    @Override
    public void doSomething() {
        System.out.println("OtherMyServiceInterfaceImpl does the job");
    }

    public static OtherMyServiceInterfaceImpl provider() {
        System.out.println("使用service provider 实例化Service");
        return new OtherMyServiceInterfaceImpl();
    }
}
